<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		// now = new Date();

		// gouqing = new Date('2019-10-01 0:0:0');

		// gouqing = new Date('1137075575000');

		// nowTime = now.getTime();

		// yundanTime = gouqing.getTime();	

		// diff = gouqingTime - nowTime;

		// console.log(Math.floor(diff/1000/86400));

		// 2019 01 01 2019 3 13
		// 
		// for (var i = Things.length - 1; i >= 0; i--) {
		// 	Things[i]
		// }

		// console.log(yundan.getDay());

		// console.log(now.getDate())
		// console.log(now.getDay())
		// console.log(Math.floor(now.getTime()/1000))
		// console.log(yundan)

		// 1990 04 05

		// 1991 04 05

		// 2019 04 05
		// 
		alert('2019'-'2045.89');

		yundan = new Date('2019-01-01');

		now = new Date();

		num = 0;

		for (var i = yundan.getTime(); i <= now.getTime(); i+=86400*1000) {
			everyDay = new Date(i);

			if(everyDay.getDay()=='0'){
				num++;
			}
		}

		// console.log(num);



		num = 0;

		for (var i = 1986; i <=2018; i++) {
			
			data = i+"-04-05";

			everyDay = new Date(data);

			if(everyDay.getDay()=='0'){
				num++;
			}

		}

		console.log(num);


		birthday = new Date('1986-12-25');

		now = new Date();

		num = Math.floor((now.getTime()-birthday.getTime())/86400/1000);

		console.log(num);



	</script>
</head>
<body>
	
</body>
</html>